﻿using MyIServices.BASE;
using MyModels.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyIServices
{
    public interface IRoleModulePermissionService:IBaseService<RoleModulePermission>
    {
        Task<List<RoleModulePermission>> GetRoleModule();

        Task<List<RoleModulePermission>> RoleModuleMap();

        Task<List<RoleModulePermission>> GetRMPMaps();

        /// <summary>
        /// 批量更新菜单与接口的关系
        /// </summary>
        /// <param name="permissionId"></param>
        /// <param name="moduleId"></param>
        /// <returns></returns>
        Task UpdateModuleId(long permissionId,long moduleId);
    }
}
